package day01;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

import java.util.Scanner;

public class demo3 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        System.out.println("请输入用户名");
        String username = sc.next();
        System.out.println(username);

        String rightps = "PRD";
        do {
            System.out.println("请输入密码");
            String password = sc.next();
            System.out.println(password);
            System.out.println(password == "PRD");
            if (password == "PRD") {
                System.out.println("欢迎您" + username);
                break;
            } else {
                System.out.println("密码错误，请重新输入");
            }
        }while(true);
    }



}
